package com.xjscrm.console.chat.dispatch.match;

import com.xjscrm.console.dto.chat.setting.ChatDispatchConditionJsonDTO;

/**
 * @author mingyang.chen create in 2024/3/20 10:00
 */
public interface DispatchCondition {

    /**
     * 匹配
     *
     * @param talkContent       聊天内容
     * @param dispatchCondition 分发条件
     * @return true: 满足条件, false: 反之
     */
    Boolean match(String talkContent, ChatDispatchConditionJsonDTO dispatchCondition);
}
